package cn.gson.crm.controller.delete;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.gson.crm.controller.BaseServlet;
import cn.gson.crm.model.dao.StudentDao;

/**
 * 恢复学员
 */
@WebServlet("/student/recover")
public class StudentRecover extends BaseServlet {
	private static final long serialVersionUID = 1L;
    private StudentDao stuDao = new StudentDao();   
	
	@Override
	protected void get(HttpServletRequest request, HttpServletResponse response) throws Exception {
		super.get(request, response);
		String[] id = request.getParameterValues("sid");
		
		for (String sid : id) {
			stuDao.stuDeleteById("正常","未分配", Integer.parseInt(sid));
		}
		redirect("/show/delete/stu");
	}
}
